<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <style>
        tr{border: black solid 1px;}
        tr{width: 50px;height: 30px;background-color: palegreen}
    </style>
    <body>
        <div style="width: 1000px;height: 800px;margin: 0 auto;">
       <?php
           $m=9;
           $n=12;
           echo "<table>";
           for ($i=1;$i<=$m;$i++)
           {
               echo "<tr border='2'>";
               for($j=1;$j<=$i;$j++)
               {                  
                   echo "<td>{$i}X{$j}=".$i*$j;
                   echo "</td>";
               }
               echo "</tr>";
           }
           echo "</table>";
        ?>
    </div>
    </body>
</html>
